package com.ruoyi.book.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 图书信息对象 bookinfo
 *
 * @author ruoyi
 * @date 2025-02-26
 */
public class Bookinfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    private Long id;

    /**
     * 图书编号
     */
    @Excel(name = "图书编号")
    private String bookid;

    /**
     * 图书名称
     */
    @Excel(name = "图书名称")
    private String bookname;

    /**
     * 出版社
     */
    @Excel(name = "出版社")
    private String publisher;

    /**
     * 作者
     */
    @Excel(name = "作者")
    private String author;

    /**
     * 图书类别
     */
    @Excel(name = "图书类别")
    private Long booktype;

    /**
     * 剩余数量
     */
    @Excel(name = "剩余数量")
    private Long remain;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setBookid(String bookid) {
        this.bookid = bookid;
    }

    public String getBookid() {
        return bookid;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }

    public String getBookname() {
        return bookname;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getAuthor() {
        return author;
    }

    public void setBooktype(Long booktype) {
        this.booktype = booktype;
    }

    public Long getBooktype() {
        return booktype;
    }

    public void setRemain(Long remain) {
        this.remain = remain;
    }

    public Long getRemain() {
        return remain;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("bookid", getBookid())
                .append("bookname", getBookname())
                .append("publisher", getPublisher())
                .append("author", getAuthor())
                .append("booktype", getBooktype())
                .append("remain", getRemain())
                .toString();
    }
}
